<template>
<div class="about">
    <div class="box1">
<el-form ref="form" :model="form" label-width="80px">
  <el-form-item label="姓名">
    <el-input v-model="form.name" placeholder="请输入您的姓名"></el-input>
  </el-form-item>
  <br>
  <el-form-item label="电话号码">
    <el-input v-model="form.phone" placeholder="请输入您的号码"></el-input>
  </el-form-item>
  <br>
  <el-form-item label="性别">
    <el-radio-group v-model="form.resource">
      <el-radio label="男"></el-radio>
      <el-radio label="女"></el-radio>
    </el-radio-group>
  </el-form-item>
  <br>
  <el-form-item label="专业">
    <el-select v-model="form.region" placeholder="请选择您的专业">
      <el-option label="电子信息工程" value="dz"></el-option>
      <el-option label="自动化" value="zdh"></el-option>
      <el-option label="通信工程" value="tx"></el-option>
      <el-option label="人工智能" value="rg"></el-option>
    </el-select>
  </el-form-item>
  <el-form-item label="期待回信">
    <el-switch v-model="form.delivery"></el-switch>
  </el-form-item>
  </el-form>
 
  
   <br></div>
<div class="box2">
    <el-form ref="form" :model="form" label-width="80px">
  <br>
  <el-form-item label="回信时间">
    <el-col :span="11">
      <el-date-picker type="date" placeholder="选择日期" v-model="form.date1" style="width: 100%;"></el-date-picker>
    </el-col>
    <el-col class="line" :span="2">-</el-col>
    <el-col :span="11">
      <el-time-picker placeholder="选择时间" v-model="form.date2" style="width: 100%;"></el-time-picker>
    </el-col>
  </el-form-item>
  <br>
  <el-form-item label="共同爱好">
    <el-checkbox-group v-model="form.type">
      <el-checkbox label="跑步" name="type"></el-checkbox>
      <el-checkbox label="羽毛球" name="type"></el-checkbox>
      <el-checkbox label="音乐" name="type"></el-checkbox>
      <el-checkbox label="恐怖小说" name="type"></el-checkbox>
    </el-checkbox-group>
  </el-form-item>
  
  <el-form-item label="留言">
    <el-input type="textarea" v-model="form.desc"></el-input>
  </el-form-item>
  <el-form-item>
    <el-button type="primary" @click="onSubmit">提交留言</el-button>
  </el-form-item>
</el-form>
</div></div>
</template>

<script>

    export default{
        data(){
            return{
        form: {
          name: '',
          phone:'',
          region: '',
          date1: '',
          date2: '',
          delivery: false,
          type: [],
          resource: '',
          desc: ''
        }
        }
    },
    methods:{
       onSubmit() {
        alert("提交成功！！");
        
      }
    },
}

</script>

<style>
.box1{
      width: 300px;
      height: 400px;
      align-content: center;
      background-color: #E9EEF3;
  }
  .box2{
      width: 1200px;
      height: 600px;
      align-content: center;
      background-color: #E9EEF3;
  }
</style>